package com.ehome.poct.core.dao.mybatis.mapper.report;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ehome.poct.core.api.dto.report.BldAnalysisDTO;
import com.ehome.poct.core.dao.entity.report.BldAnalysisDO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * cellMapper
 *
 * @author wuyingchao
 * @Date 2022-05-17 09:48
 */
public interface BloodAnalysisMapper extends BaseMapper<BldAnalysisDO> {

    @Select("select * from n_blood_analysis b left join n_conf_conclusion c on b.conclusion_code = c.code where b.analysis_code = '${code}' and b.type = ${type}")
    BldAnalysisDTO selectByCode(@Param("code") String code, @Param("type") Integer type);
}